<template>
    <div class="roadmap pdTop pdBot">
        <h2 class="pdBot">{{$t('home.roadmap.title')}}</h2>
        <b-container class="road">
            <b-row class="items">
                <b-col class="item" v-for="(value,index) in $t('home.roadmap.lists')" :key="index">
                    <div class="line"></div>
                    <p>{{value.time}}</p>
                    <h3>{{value.event}}</h3>
                </b-col>
            </b-row>
        </b-container>
    </div>
</template>


<style lang="scss" scoped>
.roadmap{
    text-align: center;
    background: #204d9a;
    h2{
        color:#fff;
    }
    .road{
        padding-bottom:50px;
    }
    .items{
        height: 300px;
        position: relative;
        &:after{
            content: "";
            background: #65aee1;
            height: 2px;
            width: 100%;
            position: absolute;
            left: 0;
            top: 50%;
        }
    }
    .item{
        height: 100%;
        position: relative;
        &:before{
            content: "";
            width: 12px;
            height: 12px;
            background: rgba(72,133,195,1);
            border-radius: 50%;
            position: absolute;
            left: 50%;
            top: 50%;
            margin-left: -6px;
            margin-top: -6px;
            z-index: 2;
        }
        &:after{
            opacity: 0;
            content: "";
            width: 20px;
            height: 20px;
            background: rgba(56,111,179,1);
            border-radius: 50%;
            position: absolute;
            left: 50%;
            top: 50%;
            margin-left: -10px;
            margin-top: -10px;
            z-index: 1;
            animation: ballScale1 4s 0s linear infinite;
        }
        .line{
            width: 2px;
            height: 90px;
            background: #65aee1;
            position: absolute;
            left: 50%;
            top: 50%;
            margin-left: -1px;
            z-index: 1;
        }
        p{
            width:80px;
            color: #fff;
            background: #65aee1;
            border-radius: 5px;
            position: absolute;
            bottom: 55%;
            left: 50%;
            transform: translateX(-50%);
        }
        h3{
            color: #65aee1;
            width: 100%;
            font-size: 18px;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
        }
        &:nth-child(even){
            .line{
                top: auto;
                bottom: 50%;
            }
            p{
                bottom: 25%;
            }
            h3{
                bottom: auto;
                top: 0;
            }
        }
    }
}
@keyframes ballScale1{
  0% {
    transition:scale(0);
    opacity: 0;
  }
  80% {
    transition:scale(1);
    opacity: 1;
  }
  100% {
    transition:scale(0);
    opacity: 0;
  }
}
</style>
